<extend name="Index/index"/>
<block name='right'>
<div class="rightBody">
	<span class='title'>添加分类</span>
	<div id="content">
		<form  class='registerform' action="<{:U('Category/add_handle')}>" method="post">
		<table class='table table-striped table-bordered'>
			<thead>
				<tr>
					<th width="20%">名称</th>
					<th>值</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td>所属分类</td>
					<td>
						<select name="pid" id="">
							<option value="0">顶级分类</option>
							<volist name="rows" id="row">
								<option value="<{$row['cid']}>">|<{$row['html']}><{$row['cname']}></option>
							</volist>
						</select>
					</td>
				</tr>
				<tr>
					<td>分类名称</td>
					<td>
						<input type="text" name="cname" datatype="*2-6" errormsg="长度2-6位任意字符"  nullmsg="分类名称不能为空" sucmsg="填写正确"/>
						<span class="Validform_checktip" >请输入2-6位任意字符</span>
					</td>
				</tr>
				<tr>
					<td>分类标题</td>
					<td>
						<textarea name="title" datatype="*1-40" errormsg="长度为1-40个任意字符"  nullmsg="分类标题不能为空" sucmsg="填写正确" ></textarea>
						<span class="Validform_checktip">最大长度40个字符内</span>
					</td>
				</tr>
				<tr>
					<td>分类关键字</td>
					<td>


						<textarea name="keywords" datatype="*1-60" errormsg="长度为1-60个任意字符"  nullmsg="分类关键字不能为空" sucmsg="填写正确"></textarea>
						<span class="Validform_checktip">最大长度60个字符内</span>
					</td>
				</tr>
				<tr>
					<td>分类描述</td>
					<td>
						<textarea name="description" datatype="*1-200" errormsg="200个字符以内"  nullmsg="分类描述不能为空" sucmsg="填写正确"></textarea>
						<span class="Validform_checktip">最大长度200个字符内</span>
					</td>
				</tr>
				<tr>
					<td>分类排序</td>
					<td>
						<input name="sort" type="text" datatype="n1-100" nullmsg="排序不能为空"  errormsg="长度100个字符内" sucmsg="填写正确"/>
						<span class="Validform_checktip">必须为数字</span>
					</td>
				</tr>
				<tr>
					<td>是否显示</td>
					<td>
						<lable>
							<input type="radio" name="display" checked='true' value="1"/>	
							<span>显示</span>
						</lable>
						<lable>
							<input type="radio" name="display" value="0"/>	
							<span>隐藏</span>
						</lable>
					</td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" class='btn btn-primary' /></td>
				</tr>
			</tbody>
		</table>
		</form>
	</div>
</div>
</block>
